<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " - $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );

	?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );
?>
<?php	 wp_head(); ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/jquery.bxslider.css" />
<script src="<?php bloginfo('template_url'); ?>/js/jquery.bxslider.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.filestyle.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jcarousellite_1.0.1.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery-ui-1.10.4.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.ui.core.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery.ui.widget.js" type="text/javascript"></script>
<script>
	$(document).ready(function(){
		$("#tabs").tabs({
			activate: function( event, ui ) { 
				var $this = $(event.currentTarget);
				var callback = eval($this.attr("data-callback"));
				if(callback){ if(typeof callback === "function") callback(); }
			}
		});

		$('.bxslider').bxSlider({
		  minSlides: 5,
		  maxSlides: 5,
		  slideWidth: 189,
		  slideMargin: 10,
		  pager: false,
		  startSlide: 2
		});
		$('.bxslider_home').bxSlider({
		  mode: 'fade',
		  auto: true,
		  captions: true,
		  controls: false
		});
		$('.bxslider_videos').bxSlider({
		  minSlides: 3,
		  maxSlides: 3,
		  slideWidth: 122,
		  slideMargin: 16,
		  pager: false
		});
		$('.bxslider_videos .slide').click(function(e){
			e.preventDefault();
			var idvideo = $(this).data("videoid");
			//console.log(idvideo);
			$("#video_principal").attr("src", "//www.youtube.com/embed/"+idvideo+"?rel=0");
		});
		$("#curriculo").filestyle({ 
			image: "<?php bloginfo('template_url');?>/images/anexar_curriculo.jpg",
			imageheight : 52,
			imagewidth : 254,
			width : 254
		});
		$("#marcas.carousel").jCarouselLite({
            btnNext: "#marcas .next",
            btnPrev: "#marcas .prev",
            visible : 8,
            scroll  : 8
        });
        $(".tooltip").tooltip({
      position: {
        my: "center bottom-20",
        at: "center top",
        using: function( position, feedback ) {
          $( this ).css( position );
          $( "<div>" )
            .addClass( "arrow" )
            .addClass( feedback.vertical )
            .addClass( feedback.horizontal )
            .appendTo( this );
        }
      }
    });
	});
				</script>
</head>

<body <?php //body_class(); ?>>

<div id="redes_sociais">
	<a href="https://www.facebook.com/allfoodimportadora" id="bt_facebook" target="_blank" title="Facebook"></a>
	<a href="http://instagram.com/allfoodimportadora" id="bt_instagram" target="_blank" title="Instagram"></a>
	<a href="<?php echo bloginfo('url');?>/novidades/" id="bt_novidades" title="Novidades"></a>
	<a href="http://allfood.com.br/blog" id="bt_blogger" target="_blank" title="Blogger"></a>
	<a href="http://br.linkedin.com/pub/allfood-importadora/63/462/b14" id="bt_linkedin" target="_blank" title="Linkedin"></a>
	<a href="http://www.youtube.com/user/AllfoodImportadora" id="bt_youtube" target="_blank" title="YouTube"></a>
	<a href="http://twitter.com/#!/Allfood_Brasil" id="bt_twitter" target="_blank" title="Twitter"></a>
</div>
<div id="page" class="hfeed">
	<header id="branding" role="brand">
    	<div id="header">
            <div class="container">
                <a href="<?php echo bloginfo('url');?>"><img src="<?php echo bloginfo('template_url');?>/images/logo_allfood.png" align="FIIA" /></a>
                <nav id="access" role="navigation">
		            	<?php wp_nav_menu( array( 'theme_location' => 'principal' ) ); ?>
		            <div class="clear"></div>
			    </nav><!-- #access -->
			    <a class="login" href="javascript:void(0)">Logar</a>
			    <div class="clear"></div>
			    <p>Acesso Restrito</p>
			    <div class="clear"></div>
			    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
				    <div>
				        <input type="text" value="" name="s" id="s" placeholder="DIGITE O QUE VOCÊ DESEJA PESQUISAR EM NOSSO SITE" />
				        
				    </div>
				</form>	
            </div> <!-- .container -->
		</div><!-- #header -->
	</header><!-- #branding -->

<?php if (is_home()) { ?>
		<div id="slider_home">
			<div class="bxslider_home">
				<?php
				$args = array (
					'category_name'          => 'slides',
				);

				// The Query
				$query = new WP_Query( $args );

				// The Loop
				if ( $query->have_posts() ) {
					while ( $query->have_posts() ) {
						$query->the_post();
				?>
					<div class="slide">
						<div class="container">
							<div class="title_slide"></div>
						</div>
						<img src="<?php echo get_image('imagem',1,1,0); ?>" />
						<div class="bx-caption">
							<div class="container">
								<?php the_content() ?>
							</div>
						</div>
					</div>
				<?php
					}
				} else {
					// no posts found
				}

				// Restore original Post Data
				wp_reset_postdata();
				?>
		    </div>
		</div>
		<div class="clear"></div>
<?php }else{ ?>
	<!-- <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
	<script type="text/javascript" src="<?php echo bloginfo('template_url');?>/js/googlemaps.js"></script> -->
<?php } ?>
	<div id="main">
		<div class="container">


			